*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

a{
    text-decoration: none;
}

/* ==================== SLIDER SECTION ==================== */
.slider{
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    position: relative;
    margin-bottom: 10px;
}

.slider .list .item{
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0 0 0 0;
}

.slider .list .item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider .list .item .content {
    text-align: center !important;
    color: #fff;
    position: absolute;
    top: 15%;
    right: 10px;
    padding: 50px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.2));
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    box-shadow: 0 25px 35px rgba(253, 250, 250, 0.3);
    max-width: 600px;
}

.slider .list .item .content .title{
    font-size: 4rem;
    font-weight: bold;
    line-height: 1em;
    margin-bottom: 30px;
}

.slider .list .item .content .type{
    font-size: 2rem;
    font-weight: 600;
    color: rgb(255, 215, 0);
    line-height: 1em;
    margin-bottom: 30px;
}

.slider .list .item .content .description{
    font-size: 26px;
    font-weight: 500;
    line-height: 1.4em;
    margin-bottom: 30px;
}

.slider .list .item .content .button{
    margin-top: 20px;
}

.slider .list .item .content .button button{
    background: linear-gradient(125deg, #FFD700, #FF8C00);
    border: none;
    padding: 12px 14px;
    border-radius: 60px;
    color: #1a1a2e;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.slider .list .item .content .button button:hover{
    transform: scale(1.02);
    box-shadow: 0 0 15px gold;
}

/* ==================== THUMBNAIL SECTION ==================== */
.thumbnail{
    display: flex;
    gap: 20px;
    position: absolute;
    bottom: 50px;
    right: 50%;
    transform: translateX(50%);
    width: max-content;
    z-index: 100;
}

.thumbnail .item{
    width: 150px;
    height: 220px;
    flex-shrink: 0;
    position: relative;
}

.thumbnail .item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 5px 0 15px rgba(247, 244, 244, 0.8);
}

/* ==================== NEXT/PREV BUTTONS ==================== */
.slider .nextprevArrows{
    position: absolute;
    z-index: 100;
    display: flex;
    gap: 10px;
    align-items: center;
}

.nextprevArrows button{
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(125deg, #FFD700, #FF8C00);
    border: none;
    color: #000;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.5s;
}

.nextprevArrows button:hover{
    background-color: #fff;
    color: #000;
}

/* ==================== ANIMATIONS ==================== */
.slider .list .item:nth-child(1){
    z-index: 1;
}

.slider .list .item:nth-child(1) .content .title,
.slider .list .item:nth-child(1) .content .type,
.slider .list .item:nth-child(1) .content .description,
.slider .list .item:nth-child(1) .content .button{
    transform: translateY(50px);
    filter: blur(20px);
    opacity: 0;
    animation: showContent 0.5s 1s linear 1 forwards;
}

@keyframes showContent {
    to{
        transform: translateY(0px);
        filter: blur(0px);
        opacity: 1;
    }
}

.slider .list .item:nth-child(1) .content .title{ animation-delay: 0.4s; }
.slider .list .item:nth-child(1) .content .type{ animation-delay: 0.6s; }
.slider .list .item:nth-child(1) .content .description{ animation-delay: 0.8s; }
.slider .list .item:nth-child(1) .content .button{ animation-delay: 1s; }

.slider .list .item:nth-child(1) img{
    width: 150px;
    height: 220px;
    position: absolute;
    bottom: 50px;
    left: 50%;
    border-radius: 30px;
    animation: showImage 0.5s linear 1 forwards;
}

@keyframes showImage {
    to{
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
}

.slider.next .thumbnail .item:nth-last-child(1){
    overflow: hidden;
    animation: showThumbnail 0.5s linear 1 forwards;
}

.slider.prev .list .item img{
    z-index: 100;
}

@keyframes showThumbnail {
    from{
        width: 0;
        opacity: 0;
    }
}

.slider.next .thumbnail{
    animation: effectNext 0.5s linear 1 forwards;
}

@keyframes effectNext{
    from{
        transform: translateX(150px);
    }
}

.slider.prev .list .item:nth-child(2){
    z-index: 2;
}

.slider.prev .list .item:nth-child(2) img{
    position: absolute;
    bottom: 0;
    left: 0;
    animation: outFrame 0.5s linear 1 forwards;
}

@keyframes outFrame {
    to{
        width: 150px;
        height: 220px;
        bottom: 50px;
        left: 50%;
        border-radius: 20px;
    }
}

.slider.prev .thumbnail .item:nth-child(1){
    overflow: hidden;
    opacity: 0;
    animation: showThumbnail 0.5s linear 1 forwards;
}

slider.prev .list .item:nth-child(1) .content .title,
slider.prev .list .item:nth-child(1) .content .type,
slider.prev .list .item:nth-child(1) .content .description,
slider.prev .list .item:nth-child(1) .content .button{
    animation: ContentOut 0.5s 1s linear 1 forwards;
}

@keyframes ContentOut{
    to{
        transform: translateY(-150px);
        filter: blur(20px);
        opacity: 0;
    }
}

/* ==================== RESPONSIVE ==================== */

/* دسکتاپ (بیشتر از 1024px) */
@media screen and (min-width: 1025px) {
    .slider .list .item .content {
        max-width: 650px !important;
        padding: 45px;
    }
    .slider .list .item .content .title { font-size: 3.5rem; margin-bottom: 45px; }
    .slider .list .item .content .type { font-size: 2.3rem; margin-bottom: 45px; }
    .slider .list .item .content .description { font-size: 35px; margin-bottom: 45px; }
    
    /* thumbnail نزدیک‌تر به سمت چپ */
    .thumbnail {
        right: auto !important;
        left: 40px !important;
        transform: none !important;
        bottom: 60px;
    }
    
    /* دکمه‌ها کنار thumbnail (سمت راست thumbnail) */
    .slider .nextprevArrows {
        position: absolute;
        bottom: 50px;
        left: calc(30px + 680px + 20px) !important;
        top: auto !important;
        right: auto !important;
    }
    
    .thumbnail .item { width: 150px; height: 220px; }
}

/* لپ‌تاپ (1024px) */
@media screen and (min-width: 1024px) and (max-width: 1280px) {
    .slider .list .item .content {
        max-width: 500px;
        padding: 25px 30px;
        

    }
    .slider .list .item .content .title { font-size: 2.5rem; }
    .slider .list .item .content .type { font-size: 1.3rem; }
    .slider .list .item .content .description { font-size: 18px; }
    
    /* thumbnail نزدیک‌تر به سمت چپ */
    .thumbnail {
        right: auto !important;
        left: 20px !important;
        transform: none !important;
        bottom: 50px;
    }
    
    /* دکمه‌ها کنار thumbnail */
    .slider .nextprevArrows {
        position: absolute;
        bottom: 50px;
        left: calc(20px + 600px + 20px) !important;
        top: auto !important;
        right: auto !important;
    }
    
    .thumbnail .item { width: 130px; height: 190px; }
}

/* تبلت (769px تا 1024px) - دکمه‌ها کنار thumbnail */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .slider .list .item .content {
        max-width: 450px;
        padding: 30px 30px;
        top: 13%;
        right: 3%;
        border-radius: 50%;
    }
    .slider .list .item .content .title { font-size: 2.6rem; margin-bottom: 20px; }
    .slider .list .item .content .type { font-size: 1.4rem; margin-bottom: 20px; }
    .slider .list .item .content .description { font-size: 18px; margin-bottom: 20px; }
    .slider .list .item .content .button button { padding: 10px 24px; font-size: 25px; }
    
    /* thumbnail در تبلت - نزدیک به چپ */
    .thumbnail {
        right: auto !important;
        left: 55px !important;
        transform: none !important;
        bottom: 30px;
        gap: 18px;
        max-width: 60%;
        overflow-x: auto;
        padding: 8px 12px;
        background: rgba(0, 0, 0, 0.3);
        border-radius: 40px;
    }
    .thumbnail .item { width: 120px; height: 185px; }
    .thumbnail::-webkit-scrollbar { height: 3px; }
    .thumbnail::-webkit-scrollbar-track { background: rgba(255,255,255,0.2); border-radius: 10px; }
    .thumbnail::-webkit-scrollbar-thumb { background: #FFD700; border-radius: 10px; }
    
    /* دکمه‌ها کنار thumbnail در تبلت */
    .slider .nextprevArrows {
        position: absolute;
        bottom: 30px;
        left: calc(15px + 470px + 15px) !important;
        top: auto !important;
        right: 50px !important;
    }
    .nextprevArrows button { width: 38px; height: 38px; font-size: 14px; }
}

/* موبایل بزرگ (577px تا 768px) - دکمه‌ها زیر thumbnail */
@media screen and (min-width: 577px) and (max-width: 768px) {
    .slider .list .item .content {
        max-width: 400px;
        padding: 35px 30px;
        top: 10%;
        right: 50%;
        transform: translateX(50%);
        border-radius: 50%;
        text-align: center;
    }
    .slider .list .item .content .title { font-size: 2rem; margin-bottom: 27px; }
    .slider .list .item .content .type { font-size: 1.1rem; margin-bottom: 27px; }
    .slider .list .item .content .description { font-size: 14px; margin-bottom: 27px; }
    .slider .list .item .content .button button { padding: 8px 20px; font-size: 22px; }
    
    /* thumbnail در موبایل - وسط */
    .thumbnail {
        right: 60% !important;
        left: auto !important;
        transform: translateX(50%) !important;
        bottom: 70px;
        gap: 10px;
        max-width: 90%;
        overflow-x: auto;
        padding: 6px 10px;
        background: rgba(0, 0, 0, 0.4);
        border-radius: 35px;
        justify-content: flex-start;
    }
    .thumbnail .item { width: 130px; height: 230px; }
    .thumbnail::-webkit-scrollbar { height: 2px; }
    
    /* دکمه‌ها زیر thumbnail در موبایل */
    .slider .nextprevArrows {
        position: absolute;
        bottom: 50px !important;
        left: 80% !important;
        transform: translateX(-50%) !important;
        top: auto !important;
        right: auto !important;
    }
    .nextprevArrows button { width: 38px; height: 38px; font-size: 14px; }
}

/* موبایل متوسط (376px تا 576px) - دکمه‌ها زیر thumbnail */
@media screen and (min-width: 377px) and (max-width: 576px) {
    .slider .list .item .content {
        max-width: 340px;
        padding: 40px 35px;
        top: 15%;
        right: 50%;
        transform: translateX(50%);
        border-radius: 50%;
        text-align: center;
    }
    .slider .list .item .content .title { font-size: 1.6rem; margin-bottom: 22px; }
    .slider .list .item .content .type { font-size: 1.1rem; margin-bottom: 22px; }
    .slider .list .item .content .description { font-size: 18px; margin-bottom: 22px; }
    .slider .list .item .content .button button { padding: 10px 18px; font-size: 22px; }
    
    .thumbnail {
        right: 50% !important;
        left: auto !important;
        transform: translateX(50%) !important;
        bottom: 65px;
        gap: 8px;
        max-width: 92%;
        overflow-x: auto;
        padding: 5px 8px;
        background: rgba(0, 0, 0, 0.5);
        border-radius: 30px;
    }
    .thumbnail .item { width: 85px; height: 110px; }
    
    .slider .nextprevArrows {
        position: absolute;
        bottom: 12px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        top: auto !important;
        right: auto !important;
        gap: 8px;
    }
    .nextprevArrows button { width: 34px; height: 34px; font-size: 13px; }
}

/* موبایل کوچک (تا 376px) - دکمه‌ها زیر thumbnail */
@media screen and (max-width: 376px) {
    .slider .list .item .content {
        max-width: 290px;
        padding: 22px 20px;
        top: 15%;
        right: 50%;
        transform: translateX(50%);
        border-radius: 25px;
        text-align: center;
    }
    .slider .list .item .content .title { font-size: 1.3rem; margin-bottom: 22px; }
    .slider .list .item .content .type { font-size: 0.85rem; margin-bottom: 22px; }
    .slider .list .item .content .description { font-size: 11px; margin-bottom: 22px; }
    .slider .list .item .content .button button { padding: 5px 14px; font-size: 22px; }
    
    .thumbnail {
        right: 50% !important;
        left: auto !important;
        transform: translateX(50%) !important;
        bottom: 60px;
        gap: 6px;
        max-width: 90%;
        overflow-x: auto;
        padding: 4px 6px;
        background: rgba(0, 0, 0, 0.55);
        border-radius: 25px;
    }
    .thumbnail .item { width: 70px; height: 90px; }
    
    .slider .nextprevArrows {
        position: absolute;
        bottom: 10px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        top: auto !important;
        right: auto !important;
        gap: 6px;
    }
    .nextprevArrows button { width: 30px; height: 30px; font-size: 11px; }
}

/* لنداسکیپ موبایل (صفحه افقی) */
@media screen and (max-width: 900px) and (orientation: landscape) {
    .slider .list .item .content {
        max-width: 350px;
        padding: 12px 18px;
        top: 5%;
        right: 50%;
        transform: translateX(50%);
        border-radius: 25px;
    }
    .slider .list .item .content .title { font-size: 1.2rem; margin-bottom: 6px; }
    .slider .list .item .content .type { font-size: 0.8rem; margin-bottom: 6px; }
    .slider .list .item .content .description { font-size: 10px; margin-bottom: 6px; }
    
    .thumbnail {
        bottom: 45px;
        gap: 6px;
        padding: 4px 8px;
        max-width: 85%;
    }
    .thumbnail .item { width: 60px; height: 75px; }
    
    .slider .nextprevArrows {
        bottom: 8px !important;
        gap: 6px;
    }
    .nextprevArrows button { width: 28px; height: 28px; font-size: 10px; }
}

/* اطمینان از نمایش تمام 4 آیتم thumbnail */
.thumbnail .item:nth-child(1),
.thumbnail .item:nth-child(2),
.thumbnail .item:nth-child(3),
.thumbnail .item:nth-child(4) {
    display: block !important;
}

/* اسکرول زیبا برای همه دستگاه‌ها */
.thumbnail {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}


.margin-head{
    margin-top: 80px;
    z-index: 900;
}